#include <SDL.h>
#include "sprite.h"
#include "parseXML.h"
#include<vector>
using std::vector;

class Model {
public:
  Model();
  ~Model();
  void draw() const;
  void update();
private:
  Uint32 cur_ticks;
  Uint32 prev_ticks;
  Uint32 ticks;
  ParseXML* xmlParser;
  bool env;
  int screenWidth;
  int screenHeight;
  int star_number;
  SDL_Surface * const screen;
  SDL_Surface * const bgSurface;
  SDL_Surface * const starSurface;
  
  Frame * const starFrame;
  const Frame background;
  vector<Sprite> stars;
  Model(const Model&);
  Model& operator=(const Model&);
};
